//===================================================================
// 项目名 : Hbt.Cur
// 文件名 : HbtInspectionType.cs
// 创建者 : Claude
// 创建时间: 2024-12-19
// 版本号 : V0.0.1
// 描述   : 检验类型字典实体，符合ISO9001质量管理体系标准
//===================================================================

using SqlSugar;
using System.ComponentModel.DataAnnotations;

namespace Hbt.Domain.Entities.Logistics.Quality.Master;

/// <summary>
/// 检验类型字典实体
/// 符合ISO9001质量管理体系标准
/// </summary>
[SugarTable("hbt_logistics_quality_inspection_type", TableDescription = "检验类型字典表")]
public class HbtInspectionType : HbtBaseEntity
{
    /// <summary>
    /// 检验类型代码（如：来料、过程、成品、出货）
    /// </summary>
    [SugarColumn(ColumnName = "code", ColumnDescription = "检验类型代码", Length = 20, ColumnDataType = "nvarchar", IsNullable = false)]
    public string Code { get; set; } = string.Empty;

    /// <summary>
    /// 检验类型名称（如：来料检验、过程检验、成品检验、出货检验）
    /// </summary>
    [SugarColumn(ColumnName = "name", ColumnDescription = "检验类型名称", Length = 100, ColumnDataType = "nvarchar", IsNullable = false)]
    public string Name { get; set; } = string.Empty;

    /// <summary>
    /// 检验类型描述（如：对来料进行质量检验）
    /// </summary>
    [SugarColumn(ColumnName = "description", ColumnDescription = "检验类型描述", Length = 500, ColumnDataType = "nvarchar", IsNullable = true)]
    public string? Description { get; set; }

    /// <summary>
    /// 排序号
    /// </summary>
    [SugarColumn(ColumnName = "order_num", ColumnDescription = "排序号", ColumnDataType = "int", IsNullable = false, DefaultValue = "0")]
    public int OrderNum { get; set; } = 0;
    /// <summary>
    /// 状态
    /// 0-禁用 1-启用
    /// </summary>
    [SugarColumn(ColumnName = "status", ColumnDescription = "状态", ColumnDataType = "int", IsNullable = false, DefaultValue = "1")]
    public int Status { get; set; } = 1;
}
